@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>运单汇总</h5>
            </div>
            <div class="ibox-content form-horizontal layui-form-pane">
                <div class="row ">
                        <div class="col-sm-6 ">
                             <div class="input-group">
                                <div class="input-group-btn">
                                    <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"   type="button">名称   </button>
                                </div>
                                <input type="text" class="form-control" id="name" placeholder="收货人/订单号/联系号码/上游网点/下游网点/提货人" />
                            </div>
                        </div>
                        <div class="col-sm-3 ">
                            <div class="input-group">
                                <div class="input-group-btn">
                                    <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"   type="button">配送方式</button>
                                </div>
                                <select  id="dj_type"   class="selectpicker"  data-width="180px"  >
                                    <option value=""></option>
                                    <option value="0">自提</option>
                                    <option value="1">配送</option>
                                    <option value="3">中转</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-3 ">
                            <div class="input-group">
                                <div class="input-group-btn">
                                    <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"   type="button">运单状态</button>
                                </div>
                                <select  id="audit_status"   class="selectpicker"  data-width="180px" multiple >
                                    <option value="0">待结算</option>
                                    <option value="1">待核销</option>
                                    <option value="2">坏账</option>
                                    <option value="3">已清</option>
                                </select>
                            </div>

                        </div>
                </div>
                <div class="row">

                    <div class="col-sm-3 ">
                        <div class="input-group">
                            <div class="input-group-btn">
                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"   type="button">上游款项</button>
                            </div>
                            <select  class="selectpicker" name="sy_money" id="sy_money"  data-width="180px"  >
                                <option value=""></option>
                                <option value="0">无</option>
                                <option value="1">有</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-sm-3 ">
                        <div class="input-group">
                            <div class="input-group-btn">
                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"   type="button">下游款项</button>
                            </div>
                            <select  class="selectpicker"  name="xy_money" id="xy_money"  data-width="180px"  >
                                <option value=""></option>
                                <option value="0">无</option>
                                <option value="1">有</option>
                            </select>
                        </div>
                    </div>

                    <div class="col-sm-3 ">
                        <#TimeCon id="beginTime" name="开始日期" isTime="false" pattern="YYYY-MM-DD"/>
                    </div>
                    <div class="col-sm-3">
                        <#TimeCon id="endTime" name="结束日期" isTime="false" pattern="YYYY-MM-DD"/>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 ">
                        <div class="input-group">
                            <div class="input-group-btn">
                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"   type="button">出库状态</button>
                            </div>
                            <select  id="status"   class="selectpicker"  data-width="180px"  >
                                <option value="" selected></option>
                                <option value="1">待出库</option>
                                <option value="2">已出库</option>
                                <option value="3">已完成</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-sm-3 ">
                        <div class="input-group">
                            <div class="input-group-btn">
                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"   type="button">地址</button>
                            </div>
                            <input type="text" class="form-control" id="region" placeholder="" />
                        </div>

                    </div>
                    <div class="col-sm-3">
                        <#button name="搜索" icon="fa-search" clickFun="TOrder.search()"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 ">
                        @if(shiro.hasPermission("/tOrder/summaryDetail")){
                        <#button name="查看详细款项" icon="fa-plus" clickFun="TOrder.detailOrder()"/>
                        <#button name="导出数据" icon="fa-plus" clickFun="TOrder.exportOrder()"/>
                        @}
                    </div>
                    <div class="col-sm-2 " >上游款合计：<span id="syhj">0</span></div>
                    <div class="col-sm-2 " >下游款合计：<span id="xyhj">0</span></div>
                    <div class="col-sm-2 " >利润合计：<span id="lrhj">0</span></div>
                </div>
                <div id="offHight"></div>
                <#table id="TOrderTableSum"/>
                </div>
            </div>
        </div>
    </div>
    <script src="${ctxPath}/static/modular/system/tOrder/summaryOrders.js"></script>
    @}
